﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="TransactionEdit.aspx.cs" Inherits="Frogism.Web.Views.Money.TransactionEdit" %>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadHolder" runat="server">

</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

<form name="form1" action="<%=Url.Action("Update",new {Id=ViewData.Model.Transaction.Id}) %>" method="post">

	<table>
		<tr>
			<td>Date</td>
			<td><%= Html.TextBox("TransactionDate", ViewData.Model.Transaction.TransactionDate.ToString("yyyy.MM.dd"))%></td>
		</tr>
		<script language="javascript" type="text/javascript">
		    $(document).ready(function() {
		        $('#TransactionDate').datepicker({ dateFormat: 'yy.mm.dd', showAnim: 'slideDown' });
		    });
		</script>
		<tr>
			<td>Account</td>
			<td><%= Html.DropDownList( "AccountId")%></td>
		</tr>
		<tr>
			<td>Transaction Type</td>
			<td><%= Html.DropDownList("TransactionTypeId")%></td>
		</tr>
		<tr>
			<td>Note</td>
			<td><%= Html.TextBox("Note", ViewData.Model.Transaction.Note)%></td>
		</tr>
		<tr>
			<td>Amount</td>
			<td><%= Html.TextBox("Amount", ViewData.Model.Transaction.Amount.ToString())%></td>
		</tr>
		<tr>
			<td>Category</td>
			<td><%= Html.DropDownList( "CategoryId")%></td>
		</tr>
		<tr>
			<td>IsConfirmed</td>
			<td><%= Html.CheckBox("IsConfirmed", ViewData.Model.Transaction.IsConfirmed)%></td>
		</tr>
		<tr>
		<td colspan="2"><input type="submit" value="Save" /></td>
		</tr>
	</table>
	 <input type="hidden" id="FromPage" name="FromPage" value="<%=ViewData.Model.ActionName%>" />
    <input type="hidden" id="FromId" name="FromId" value="<%=ViewData.Model.Id%>" />
</form>
</asp:Content>
